package com.aioz.security.service.impl;

import com.aioz.security.common.ResponseResult;
import com.aioz.security.entity.Resume;
import com.aioz.security.mapper.ResumeMapper;
import com.aioz.security.service.ResumeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Aioz
 * @since 2022-09-27
 */
@Service
public class ResumeServiceImpl extends ServiceImpl<ResumeMapper, Resume> implements ResumeService {

    @Resource
    private ResumeMapper resumeMapper;

    @Override
    public ResponseResult addResume(Resume resume) {
        resumeMapper.insert(resume);
        return new ResponseResult(200,"添加成功!");
    }

    @Override
    public ResponseResult updateResume(Resume resume) {
        resumeMapper.updateById(resume);
        return new ResponseResult(200,"更新成功!");
    }
}
